package com.xquant.trade.risk.mapper;

import com.xquant.trade.risk.entity.VGroup;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface GroupMapper {

    /**
     * 查询 组合列表
     */
    List<VGroup> getVGroupList(Map<String, Object> params);

    List<Map> queryVGroupCombox(Map<String, Object> params);

    String getGroupId(Map<String, Object> params);

    int addVGroup(Map<String, Object> params);

    List<String> getUserPermUserId(Map<String,Object> params);

    List<String> getDeptPermDeptId(Map<String,Object> params);

    int updateVGroup(Map<String, Object> params);

    int updateUserPermGroup(Map<String,Object> params);

    int updateDeptPermGroup(Map<String,Object> params);

    int removeUserPermGroup(Map<String,Object> params);

    int removeDeptPermGroup(Map<String,Object> params);

    int deleteVGroup(Map<String, Object> params);

    int upGroupBalance(Map<String, Object> params);

    int downGroupBalance(Map<String, Object> params);

    String getDeptAncestors(String deptId);

    int getGroupBalanceByTradeIdAndGroupId(Map<String,Object> params);

    int deleteGroupBalanceByGroupId(Map<String, Object> params);


    VGroup checkGroupName(String groupName);

    VGroup checkGroupCode(String groupCode);

}
